<template>
  <div class="top">
    <p>我是头部</p>
    <span>兄弟组件传来的值：{{msg}}</span>
  </div>
</template>

<script>
export default {
  data() {
    return {
      msg: ''
    }
  },
  created() {
    this.$bus.$on('send', val=> {
      this.msg = val;
    })
  }
}
</script>

<style>
  .top {
    /* line-height: 80px; */
  }
</style>